cmake_minimum_required(VERSION 3.2)

project(templace_test)

set(CMAKE_EXPORT_COMPILE_COMMANDS true)

add_library(b STATIC b.cc)

add_custom_target(B_IR COMMAND clang -g -emit-llvm -S ${CMAKE_SOURCE_DIR}/b.cc -o ${CMAKE_CURRENT_BINARY_DIR}/b.ll)

add_dependencies(b B_IR)
